home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Palettes / Object / SumObject.m < prev    next >
Text File  |  1995-06-12  |  508b  |  31 lines

  1.  
  2. #import "SumObject.h"
  3. #import <stdio.h>
  4.  
  5. @implementation SumObject
  6.  
  7.  
  8. - sumThem:sender
  9. {
  10.     [sum setFloatValue:[summandOne floatValueAt:0]+[summandTwo floatValueAt:0]];
  11.     return self;
  12. }
  13.  
  14.  
  15. -(NXImage *)getIBImage
  16. {
  17. char        buf[MAXPATHLEN + 1];
  18. NXBundle   *bundle;
  19. NXImage    *image;
  20.  
  21. image = [[NXImage alloc] init];
  22.  
  23. bundle = [NXBundle bundleForClass:[self class]];
  24. if ( [bundle getPath:buf forResource:"Sobject" ofType:"tiff"] ) {
  25.     image = [[NXImage alloc] initFromFile:buf];
  26. }
  27.  return(image);
  28. }
  29.  
  30. @end
  31.